/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package vn.com.pps.web.common.component.table;

public class OrderByParameter extends AbstractParameter {

    private boolean m_ascending;

    public OrderByParameter(String pm_name, boolean pm_ascending) {
        super(pm_name);

        this.m_ascending = pm_ascending;
    }

    public boolean isAscending() {
        return this.m_ascending;
    }

    public String getAscendingText() {
        return (isAscending()) ? "ASC" : "DESC";
    }
}
